#include "stdafx.h"
#include "BaseDefine.h"
double GenerateNaN()
{
	unsigned long nan[2]={0xffffffff, 0x7fffffff};    // code representing a NaN
	return *( double* )nan;    
}